package com.qf.service;

import com.github.pagehelper.PageInfo;
import com.qf.bean.Role;

import java.util.List;
import java.util.Map;

/**
 * IntelliJ IDEA -> person
 * 2019/11/20 21:17
 *
 * @author zmyao
 * 别看，我是渣渣。
 */
public interface RoleService {
//    List<int[]> deleteByRoleids(int[] menuids);
    List<Role> getallrolesByDid(int deptid);
    PageInfo<Role> findAllRoles(int pageIndex, int pageSize , String rname, String   deptname , Integer state);
    int  insertRole(Role role, int[]  menuids);
    Role findRoleAndMenuById(Integer roleid);
    int updateRole(Role role ,int[] menuids);
    int  deleteRoleById(Integer roleid);
    Map<String,Object> setRoleStateDelete(int[] menuids, Integer state);
}
